<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	padding: 5px;
}
-->
</style>
<script type="text/javascript" src="JS/jquery-3.5.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("select[name='year']").val(1980);
	$("select[name='month']").val(9);
});
</script>
</head>

<body>
<form id="form1" name="form1">
  出生年月：
	    <select name="year">
		  <script type="text/javascript">
			for(var i=1970;i<2000;i++){
				document.write("<option value='"+i+"'>"+i+"年</option>");
			}
		  </script>
		</select>
		<select name="month">
		  <script type="text/javascript">
			for(var i=1;i<=12;i++){
				document.write("<option value='"+i+"'>"+i+"月</option>");
			}
		  </script>
        </select>
</form>
</body>
</html>
